package com.blackbox.price.mapper.common;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.annotation.RegisterMapper;
import tk.mybatis.mapper.common.Mapper;


@RegisterMapper
public interface VisionMapper<T> extends Mapper<T> {

    /**
     * 根据主键ID批量删除
     * @param key
     * @return
     */
    @DeleteProvider(type = VisionMapperProvider.class, method = "dynamicSQL")
    int deleteByIds(@Param("ids") Object[] key);
}
